/**
 * @Author: Bobby
 * @Date: 2021-12-30 10:01:42
 * @LastEditTime: 2022-03-01 10:17:25
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\wcsComs\basic\uiFlowChart.js
 * @CIMC-V2
 */

import { exInput, exRequestData, exColorPicker, exSwitch } from '@ve/common/components/extension'

export default {
  VERSION: '20220816',
  type: 'uiFlowChart',
  //组件类型
  name: '流程图',
  icon: 'flow-chart',
  svg: 'liuchengtu',
  //子组件列表
  list: [],
  //数据集合 表单 列表等等
  data: {
    formData: {},
    requestData: {},
  },
  //表单验证
  rules: {},
  //扩展
  extension: {
    api: exInput('Api接口', ''),
    method: exInput('Method', ''),
    getDataKey: exInput('获取数据Key', ''),
    requestData: exRequestData('参数', [
      { key: '#LIMIT#', value: 1 },
      { key: '#PAGE_SIZE#', value: 50 },
    ]),
    legend: {
      type: 'exLegend',
      name: '图例',
      value: [],
    },
    titleField: exInput('标题字段', 'SITE_NAME'),
    startTimeField: exInput('开始时间字段', 'EXECUTE_START_TIME'),
    endTimeField: exInput('结束时间字段', 'EXECUTE_END_TIME'),
    statusField: exInput('状态字段', 'TASK_STATUS'),
    titleColor: exColorPicker('标题颜色', '#000000'),
    // loopTime: exInputNumber('循环间隔', 0, 0, 100000000000000000000, '单位为‘毫秒’，若值为0则不循环调用'),
    loopTime: {
      type: 'exInputNumber',
      name: '循环间隔',
      value: 0,
      min: 0,
      max: 100000000000000000000,
      tooltip: '单位为‘毫秒’，若值为0则不循环调用',
    },
    horizontalModel: exSwitch('横向模式', false),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
